From: Jonas Ã…dahl Date: Thu, 2 Feb 2023 14:52:03 +0000 (+0100) Subject: overviewControls: Update work area also on monitors-changed X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~74 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ed2a11ba5713324fdd8ae5f1eaf2e314a0481e3d;p=gnome-shell.git overviewControls: Update work area also on monitors-changed The cached work area, which is the work area of the primary monitor, effectively depends on two properties - the (global) work area and the primary monitor - and we are only tracking changes to one of them. Also track monitor changes to also cover the second case. Part-of: --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 29aac35ed..66f291b10 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -50,6 +50,9 @@ class ControlsManagerLayout extends Clutter.BoxLayout { global.display.connectObject( 'workareas-changed', () => this._updateWorkAreaBox(), this); + Main.layoutManager.connectObject( + 'monitors-changed', () => this._updateWorkAreaBox(), + this); this._updateWorkAreaBox(); }